package com.ys.entity.eKnowAi;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_eknow].[dbo].EKnow_PromptKey", catalog="Id")
public class EKnowPromptKey extends BaseEntity<EKnowPromptKey> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="KeyName", nameJava="keyName", typeDataBase="varchar")
	private String keyName;
	@YsField(nameDataBase="IsCanSet", nameJava="isCanSet", typeDataBase="tinyint")
	private Integer isCanSet;
	@YsField(nameDataBase="PromptId", nameJava="promptId", typeDataBase="bigint")
	private Long promptId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public EKnowPromptKey setId(Long id) {
		this.id = id;
		return this;
	}
	public String getKeyName() {
		return keyName;
	}
	public EKnowPromptKey setKeyName(String keyName) {
		this.keyName = keyName;
		return this;
	}
	public Integer getIsCanSet() {
		return isCanSet;
	}
	public EKnowPromptKey setIsCanSet(Integer isCanSet) {
		this.isCanSet = isCanSet;
		return this;
	}
	public Long getPromptId() {
		return promptId;
	}
	public EKnowPromptKey setPromptId(Long promptId) {
		this.promptId = promptId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public EKnowPromptKey setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public EKnowPromptKey setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public EKnowPromptKey setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static EKnowPromptKey eKnowPromptKey(
		String keyName,
		Integer isCanSet,
		Long promptId,
		Integer status
			) {
		EKnowPromptKey entity = new EKnowPromptKey();
		entity.setKeyName(keyName);
		entity.setIsCanSet(isCanSet);
		entity.setPromptId(promptId);
		entity.setStatus(status);
		return entity;
	}
}